﻿namespace AnyOffice.Model
{
    using System;

    public class OfficeProductData
    {
        protected object _description;
        protected int _lowStock;
        protected string _name = string.Empty;
        protected object _price;
        protected int _productId = -1;
        protected int _stock;
        protected object _supplier;
        protected int _typeId;
        protected string _unit = string.Empty;

        public string Description
        {
            get
            {
                return (string) this._description;
            }
            set
            {
                this._description = value;
            }
        }

        public bool DescriptionIsNull
        {
            get
            {
                return (this._description == null);
            }
            set
            {
                if (value)
                {
                    this._description = null;
                }
            }
        }

        public int LowStock
        {
            get
            {
                return this._lowStock;
            }
            set
            {
                this._lowStock = value;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
            set
            {
                this._name = value;
            }
        }

        public decimal Price
        {
            get
            {
                return (decimal) this._price;
            }
            set
            {
                this._price = value;
            }
        }

        public bool PriceIsNull
        {
            get
            {
                return (this._price == null);
            }
            set
            {
                if (value)
                {
                    this._price = null;
                }
            }
        }

        public int ProductId
        {
            get
            {
                return this._productId;
            }
            set
            {
                this._productId = value;
            }
        }

        public int Stock
        {
            get
            {
                return this._stock;
            }
            set
            {
                this._stock = value;
            }
        }

        public string Supplier
        {
            get
            {
                return (string) this._supplier;
            }
            set
            {
                this._supplier = value;
            }
        }

        public bool SupplierIsNull
        {
            get
            {
                return (this._supplier == null);
            }
            set
            {
                if (value)
                {
                    this._supplier = null;
                }
            }
        }

        public int TypeId
        {
            get
            {
                return this._typeId;
            }
            set
            {
                this._typeId = value;
            }
        }

        public string Unit
        {
            get
            {
                return this._unit;
            }
            set
            {
                this._unit = value;
            }
        }
    }
}

